import mock from "mockjs"
let data = mock.mock({
    "list|10":[
        {
            "id|+1":1,
            "title":"@ctitle(2)",
            "img":"@image(100X100,@color())",
            "price|1-100":1
        }
    ]
})
mock.mock('/api/list','get',()=>{
    return data
})